<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">

<!-- Viewport Metatag -->
<meta name="viewport" content="width=device-width,initial-scale=1.0">

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="/back/bootstrap/css/bootstrap.min.css" media="screen">
<link rel="stylesheet" type="text/css" href="/back/css/fonts/ptsans/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="/back/css/fonts/icomoon/style.css" media="screen">

<link rel="stylesheet" type="text/css" href="/back/css/login.css" media="screen">
<link rel="stylesheet" type="text/css" href="/back/css/fonts/ptsans/stylesheet.css" media="screen">

<link rel="stylesheet" type="text/css" href="/back/css/mws-theme.css" media="screen">

<title>{{ $title }} - {{config('app.webName')}}</title>

</head>

<body>

    <div id="mws-login-wrapper">
        <div id="mws-login">
            <h1>用户登录</h1>
            <div class="mws-login-lock"><i class="icon-lock"></i></div>
            <div id="mws-login-form">
                @if (count($errors) > 0)
                    <div class="mws-login">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>
                                    <h5 style="color:#fff">
                                        {{ $error }}
                                    </h5>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                @endif
                @if (session('info'))
                    <div class="mws-login">
                        <ul>
                            <li>
                                <h5 style="color:#fff">
                                    {{ session('info') }}
                                </h5>
                            </li>
                        </ul>
                    </div>
                @endif
                <form class="mws-form" action="/admin/query" method="post">
                    <div class="mws-form-row">
                        <div class="mws-form-item">
                            {{ csrf_field() }}
                            <input type="text" name="username" class="mws-login-username required" placeholder="用户名" value="{{ old('username') }}">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <div class="mws-form-item">
                            <input type="password" name="password" class="mws-login-password required" placeholder="密码">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <div class="mws-form-item">
                            <input type="text" name="code" class="mws-login-captcha required" placeholder="验证码">
                            <a onclick="javascript:re_captcha();" >
                                <img src="{{ url('captcha/1') }}" alt="验证码" title="刷新图片" width="100" height="40" id="c2c98f0de5a04167a9e427d883690ff6" border="0"/>
                            </a>
                        </div>
                    </div>
<script>  
  function re_captcha() {
    $url = "{{ url('captcha/') }}";
        $url = $url + "/" + Math.random();
        document.getElementById('c2c98f0de5a04167a9e427d883690ff6').src=$url;
  }
</script>
                    <div class="mws-form-row">
                        <input type="submit" value="登录" class="btn btn-success mws-login-button">
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!-- JavaScript Plugins -->
    <script src="/back/js/libs/jquery-1.8.3.min.js"></script>
    <!-- // <script src="/back/js/libs/jquery.placeholder.min.js"></script> -->
    <script src="/back/custom-plugins/fileinput.js"></script>
    <!-- jQuery-UI Dependent Scripts -->
    <!-- // <script src="/back/jui/js/jquery-ui-effects.min.js"></script> -->
    <!-- Plugin Scripts -->
    <!-- // <script src="/back/plugins/validate/jquery.validate-min.js"></script> -->
    <!-- Login Script -->
    <script src="/back/js/core/login.js"></script>
</body>
</html>
<!--  -->